CC    	= gcc
CFLAGS	= -O2 -g -Wall -fmessage-length=0
LIBS	= -lm
TARGET	= kshingle
OBJECTS	= kshingle.o \
		  loadgraph.o \
	      lib.o \
	      elib.o \
	      hashtbl.o \
		  search.o \
	      strhash.o \
          shingle.o \
          uFind.o \
          heap.o \
	      vidmap.o
		  
$(TARGET):  $(OBJECTS)
	$(CC) -g -o $(TARGET) $(OBJECTS) $(LIBS)

all: $(TARGET)

install: 
	cp ./kshingle ~/bin/
	
clean: 
	rm -f $(TARGET) $(OBJECTS)
